<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/admin/lib/layui/css/layui.css">

</head>
<body>
    <div class="layui-card space_slide">
        <div class="layui-card-header">
          <span class="layui-breadcrumb">
            <a href="">新闻资讯</a>
            <a href="">公司新闻</a>
            <a><cite>展示单条页面</cite></a>
          </span>
        </div>
        <div class="layui-card-body">
          <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
              <li class="layui-this">新闻上传</li>
              </li>
              <li>新闻内容修改</li>
            </ul>
    
            <div class="layui-tab-content">
              <div class="layui-tab-item layui-show">
                <div class="layui-container">
                  <div class="layui-row">
                    <div class="layui-col-lg8">
                      <form class="layui-form" action="">
                        <div class="layui-form-item">
                          <label class="layui-form-label">新闻名字</label>
                          <div class="layui-input-block">
                            <input type="text" name="news_name" style="width:360px;" required lay-verify="required"
                              value="<%= data.news_name%>" autocomplete="off" class="layui-input" readonly>
                          </div>
                        </div>
                        <div class="layui-form-item">
                          <label class="layui-form-label">新闻标题</label>
                          <div class="layui-input-block">
                            <input type="text" name="news_title" style="width:360px;" required lay-verify="required"
                              value="<%= data.news_title%>" autocomplete="off" class="layui-input" readonly>
                          </div>
                        </div>
    
                        <div class="layui-form-item">
                          <label class="layui-form-label">新闻模块</label>
                          <div class="layui-input-block" style="width:360px;">
                            <input type="text" name="news_title" style="width:360px;" required lay-verify="required"
                              value="<%= data.new_name%>" autocomplete="off" class="layui-input" readonly>
                           
                          </div>
                        </div>
                        <div class="layui-form-item">
                          <div class="layui-form-item">
                            <label class="layui-form-label">发布时间</label>
                            <input type="text" class="layui-input wang" value="<%= data.news_date%>" readonly autocomplete="off" required name="news_date" style="margin-left: 110px;">
                          </div>
                        </div>
                        <div class="layui-form-item">
                          <label class="layui-form-label">缩略图</label>
                          <blockquote class="layui-elem-quote" style="margin-left:110px;">
                            <div>
                              <img src="<%= data.news_pic%>" alt="" class="themb" width="300">
                    
                            </div>
                          </blockquote>
                        </div>
                        <!-- 多图 -->
                        <div class="layui-form-item">
                          <label class="layui-form-label"></label>
                          <div class="layui-upload">
                                <% data.news_img.split(",").forEach((item)=>{%>
                                    <img src="<%= item%>" alt="" width="300">
                                <%})%>
                             
                          </div>
                        </div>
    
                        <div class="layui-form-item layui-form-text">
                          <label class="layui-form-label">新闻内容</label>
                          <div class="layui-input-block">
                            <textarea name="news_content" class="layui-textarea" readonly> <%= data.news_content%></textarea>
                          </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                          <label class="layui-form-label">是否展示</label></label>
                          <div class="layui-input-block">
                            <% if(data.is_show==1){%>
                                    <input type="checkbox" lay-skin="switch" lay-text="已启用|未启用" checked> 
                                <%}else{%>
                                    <input type="checkbox" lay-skin="switch" lay-text="未启用|已启用" checked> 

                            <%}%>
                            
                          </div>
                        </div>
                        
                      </form>
                    </div>
                    <div class="layui-col-lg4 box"></div>
                  </div>
                </div>
              </div>
    
           
    
            </div>
          </div>
        </div>
    
</body>
</html>
<script src="/admin/lib/layui/layui.js"></script>